cmake_minimum_required (VERSION 3.8)

SET(CMAKE_CXX_STANDARD 17)

if (CMAKE_BUILD_TYPE STREQUAL Release) 
     set(PROJECT_NAME TrManager)
else()
    set(CMAKE_BUILD_TYPE Debug)
    set(PROJECT_NAME TrManagerD)
endif()

project(${PROJECT_NAME} LANGUAGES CXX)

include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/include/ctp/6.6.1)
link_directories(${PROJECT_SOURCE_DIR}/libs/x64)
aux_source_directory(${PROJECT_SOURCE_DIR} SRCS)

add_library(${PROJECT_NAME} SHARED ${SRCS})

target_link_libraries(${PROJECT_NAME} libcurl_imp thostmduserapi_se thosttraderapi_se)